package com.wtwd.campus.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * 消息发送者配置
 */
@Component
@ConfigurationProperties(prefix = "rocketmq.producer")
public class ProducerConfig {

    private String namesrvAddr;

    private String groupName;

    private String deviceTopic;

    private String deviceTag;

    private String mangerBackStageTopic;

    private String mangerBackStageTag;

    public String getNamesrvAddr() {
        return namesrvAddr;
    }

    public void setNamesrvAddr(String namesrvAddr) {
        this.namesrvAddr = namesrvAddr;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getDeviceTopic() {
        return deviceTopic;
    }

    public void setDeviceTopic(String deviceTopic) {
        this.deviceTopic = deviceTopic;
    }

    public String getDeviceTag() {
        return deviceTag;
    }

    public void setDeviceTag(String deviceTag) {
        this.deviceTag = deviceTag;
    }

    public String getMangerBackStageTopic() {
        return mangerBackStageTopic;
    }

    public void setMangerBackStageTopic(String mangerBackStageTopic) {
        this.mangerBackStageTopic = mangerBackStageTopic;
    }

    public String getMangerBackStageTag() {
        return mangerBackStageTag;
    }

    public void setMangerBackStageTag(String mangerBackStageTag) {
        this.mangerBackStageTag = mangerBackStageTag;
    }

    @Override
    public String toString() {
        return "ProducerConfig{" +
                "namesrvAddr='" + namesrvAddr + '\'' +
                ", groupName='" + groupName + '\'' +
                ", deviceTopic='" + deviceTopic + '\'' +
                ", deviceTag='" + deviceTag + '\'' +
                ", mangerBackStageTopic='" + mangerBackStageTopic + '\'' +
                ", mangerBackStageTag='" + mangerBackStageTag + '\'' +
                '}';
    }
}
